package com.textbasedgame.choices;

import java.io.IOException;
import java.io.InputStreamReader;

import com.textbasedgame.people.Player;


public class Choice17 extends Choice{

	
	public Choice17(Player player) {
		this.player = player;
	}

	public void start() {
		System.out.println("You run through the nearest archway.");
		System.out.println(TERM_ARROW);
		
		try {
			enter = br.readLine();
		} catch (IOException ioe) {
			System.out.println("IO error trying to read your name!");
		}
		System.out.println("As you dash towards the forbidding darkness of the archway,");
		System.out.println("You hear a click followed by a rumbling sound ahead.");
		System.out.println("The floor beneath your feet begins to tremble.");
		System.out.println("1.Do you want to hurl yourself through the archway, into the darkness");
		System.out.println("2.Or stop your headlong flight?");
		System.out.println(TERM_ARROW);
		
		String choice = null;
		
		try {
			choice = br.readLine();
		} catch (IOException ioe) {
			System.out.println("IO error trying to read your name!");
		}
		
		if (choice.equals("1")){
			Choice41 choice41 = new Choice41(player);
			choice41.start();
		}else{
			if (choice.equals("2")){
				Choice21 choice21 = new Choice21(player);
				choice21.start();

	}
	
		}
		}}
